package com.desksoft.ecommerce.helper.mall;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Test {
	public static void main(String[] args) throws IOException {
//		HessianProxyFactory factory = new HessianProxyFactory();
//		String url = "http://192.168.168.13:86/desksoft_service/remoting/settingService";
//		ISettingService settingService = (ISettingService) factory.create(
//				ISettingService.class, url);
//		ServiceResult<MallSiteInfoVO> result = settingService.getWebSiteInfo(
//				"0000", "9000", "B2C");
//		System.out.print(result.isSuccess());
		
		
		//File file = new File("D:", "catalina.out");
		
		
//		File file = new File("D:/log/catalina.out");
//		
//		String s = "";
//		BufferedReader br = new BufferedReader(new FileReader(file));
//		Map<String, List<String>> timeMap = new HashMap<String, List<String>>();
//		while ((s = br.readLine()) != null) {
//			if (s.indexOf(" time=") != -1) {
//				System.out.println(s);
//
//				String[] sa = s.split("end ------");
//				if (sa.length > 1) {
//					String[] s1a = sa[1].split("time=");
//					String key = s1a[0];
//					if (timeMap.containsKey(key)) {
//						timeMap.get(key).add(s1a[1]);
//					} else {
//						List<String> list = new ArrayList<String>();
//						list.add(s1a[1]);
//						timeMap.put(key, list);
//					}
//				}
//			}
//		}
//
//		br.close();
//		
//		File f=new File("d:/log/log.txt");
//		if(f.exists()){
//			f.delete();
//		}
//		FileOutputStream out  = new FileOutputStream(f);   
//
//
//		for (String key : timeMap.keySet()) {
//			
//			List<String> list=timeMap.get(key);
//			String context = key+"   ";
//			for (String sc : list) {
//				context+=sc+"   ";
//			}
//			System.out.println(context);
//			out.write((context+"\r\n").getBytes());
//			
//		}
//
//
//         out.close();   
		
		
		String s="1";
		String d="1sdsd";
		System.out.println(s.hashCode());
		System.out.println(d.hashCode());
//    
	}
}
